package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.system.api.domain.SysMessage;
import com.ruoyi.system.api.factory.RemoteMessageFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "RemoteMessageService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteMessageFallbackFactory.class)
public interface RemoteMessageService {
    /**
     * 新增站内信
     */
    @PostMapping(value = "/message/add")
    String add(@RequestBody SysMessage sysMessage);

}
